package com.swt.testdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020-02-04 09:15
 **/
@Data
@ApiModel(value = "查询学生消息表单")
public class QueryStudentForm {

    @ApiModelProperty(value = "页码", example = "1")
    @Min(1)
    @NotNull
    private Integer page;

    @ApiModelProperty(value = "每页数量", example = "10")
    @Range(min = 5, max = 50, message = "每页条数必须在5-50之间")
    @NotNull
    private Integer limit;

    @ApiModelProperty(value = "名称过滤", example = "张三")
    private String stuNameFilter;

    @ApiModelProperty(value = "年龄过滤", example = "1")
    private String stuAgeFilter;


}